#if !defined(AFX_PARTSAVIEW_H__DA11C438_78C8_4DBC_B6D1_5DC9CAA0F734__INCLUDED_)
#define AFX_PARTSAVIEW_H__DA11C438_78C8_4DBC_B6D1_5DC9CAA0F734__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PartSAView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPartSAView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "PHSShareres.h"
#include "PartSA.h"
#include "FormViewEx.h"

class CPartSAView : public CFormViewEx
{
protected:
	CPartSAView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPartSAView)

public:
	void LinkToObject(PartSA* pSA){
		m_pObject = pSA;
	}
// Form Data
public:
	//{{AFX_DATA(CPartSAView)
	enum { IDD = IDD_PART_SA };
	CString	m_strCustomID;
	CString	m_strLoad;
	CString	m_strName;
	CString	m_strProfiledBarHeight;
	CString	m_strProfiledBarLength;
	CString	m_strSab;
	CString	m_strSah;
	CString	m_strWeight;
	CString	m_strLoadPosition;
	CString	m_strMaterial;
	CString	m_strSpan;
	CString	m_strSpec;
	CString	m_strTemperature;
	CString	m_strClgg;
	//}}AFX_DATA

	CString m_strObservation;
	CString m_strTable;
	CString m_strPressFieldName;

private:
	PartSA* m_pObject;
	BOOL m_bIsFirstVisible;

// Attributes
public:

// Operations

private:
	void LoadBH();
	void LoadMaterial();
	void LoadPosition();
	void LoadOthers();
	void LoadSpec();
	void UpdateObjectData();
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPartSAView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CPartSAView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CPartSAView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnChangeLoadEdit();
	afx_msg void OnChangeTemperatureEdit();
	afx_msg void OnSelchangeSpecCombo();
	afx_msg void OnSelchangeLoadpositionCombo();
	afx_msg void OnEditchangeSpanCombo();
	afx_msg void OnSelchangeSpanCombo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PARTSAVIEW_H__DA11C438_78C8_4DBC_B6D1_5DC9CAA0F734__INCLUDED_)
